package org.example.managere.dto.feibiao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 电机性能试验数据记录表数据传输对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AmArchivesOperationTestDto {
    private Integer testId;
    
    @NotEmpty(message = "电机ID不能为空")
    private String motorId;
    
    @NotEmpty(message = "试验类型不能为空")
    private String testType;
    
    @NotNull(message = "试验时间不能为空")
    private Date testTime;
    
    @NotNull(message = "电机效率不能为空")
    private BigDecimal efficiency;
    
    @NotNull(message = "功率因数不能为空")
    private BigDecimal powerFactor;
    
    @NotNull(message = "输出扭矩不能为空")
    private BigDecimal torque;
    
    // 添加额外字段以便前端显示
    private String motorType;
    private String manufacturer;
} 